package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/8/10 15:13
 * @desrcption: 表单设计对象
 */
@Getter
@Setter
@ToString
public class FormListDTO extends BaseDTO {

    private static final long serialVersionUID = 6845449318811350095L;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.formList.appId.NotNull}")
    private Long appId;
    /**
     * 菜单id
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Long menuId;
    /**
     * 需要过滤的表单id，用于过滤菜单id对应的表单
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Long formId;

    private Integer del;

    /**
     * 是否启用
     */
    private Integer enable;

    FormListDTO(){
        enable = 1;
        del = DelEnum.NORMAL.getDel();
    }
}
